package xuan.mall.system.infrastructure.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import xuan.mall.system.domain.entity.Role;

import java.util.List;

/**
 * @author: rongxuanzhou
 * @create: 2025/6/2
 * @Description: 角色mapper
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据用户id查询角色列表
     * @return 角色列表
     */
    List<Role> findRolesByUserId(Long userid);
}
